<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>数据展现</h1>
<div align="center">
    <table border="1">
        <tr>
            <th>id</th>
            <th>name</th>
            <th>sex</th>
            <th>age</th>
            <th>date</th>
        </tr>
        <tr th:each="person:${pageInfo}">
            <td th:text="${person.deptId}"></td>
            <td th:text="${person.deptName}"></td>
            <td th:text="${person.deptNum}"></td>
            <td th:text="${person.deptDesc}"></td>
            <td th:text="${person.deptDate}"></td>
        </tr>
    </table>
    <p>当前 <span th:text="${pageInfo.pageNum}"></span> 页,总 <span th:text="${pageInfo.pages}"></span> 页,共 <span th:text="${pageInfo.total}"></span> 条记录</p>
    <a th:href="@{/day}">首页</a>
    <a th:href="@{/day(pageNum=${pageInfo.hasPreviousPage}?${pageInfo.prePage}:1)}">上一页</a>
    <a th:href="@{/day(pageNum=${pageInfo.hasNextPage}?${pageInfo.nextPage}:${pageInfo.pages})}">下一页</a>
    <a th:href="@{/day(pageNum=${pageInfo.pages})}">尾页</a>
</div>
</body>
</html>